package combat.settlement.order.decorators;

import combat.settlement.order.Order;
import combat.settlement.order.OrderDecorator;

/**
 * @author Seon
 * @version 1.0
 * @since 2024-09-03
 */
public class FreeShippingDecorator extends OrderDecorator {

    public FreeShippingDecorator(Order order) {
        super(order);
    }

    @Override
    public double calculateFinalPrice() {
        // 包邮不影响价格，但是可以在这里增加包邮的逻辑
        System.out.println("Your order has been free shipping");
        return decoratedOrder.calculateFinalPrice();
    }
}
